<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>



{{--在视图中的循环--}}

id&emsp;&emsp;name&emsp;&emsp;age&emsp;&emsp;email&emsp;&emsp;<br>
@foreach($data as $key => $value)
   {{ $value -> id  }}&emsp;&emsp;{{$value -> name}}&emsp;&emsp;{{$value -> age}}&emsp;&emsp;{{$value -> email}}<br>
@endforeach
<br>

{{--判断--}}
@if($day == '1')
    星期一
@elseif($day == '2')
    星期二
@elseif($day == '3')
    星期三
@elseif($day == '4')
    星期四
@elseif($day == '5')
    星期五
@elseif($day == '6')
    星期六
@else
    星期天
@endif
</body>
</html>
